import math

def is_factor(number):
    for x in range(2,int(math.sqrt(number))+1):
        if number % x == 0:
            return False
    return True